<template>
    <a-modal
        :title="title"
        :visible="visible"
        :confirm-loading="confirmLoading"
        @ok="handleOk"
        @cancel="handleCancel"
        cancelText="取消" okText="确定">
        <a-form>
            <a-form-item label="新增分类">
            <a-input
                v-decorator="['folderName', { rules: [{ required: true, message: '请输入文件夹名' }] }]"
            />
            </a-form-item>
        </a-form>
    </a-modal>
</template>
<script>
export default {
    name:"AddMenu",
    data(){
        return{
            title:"",
            visible:false,
            confirmLoading:false,

        }
    },
    methods:{
        show(){
            this.visible = true;
        },
        handleOk(){
            this.$message.success('添加分类成功');
            this.visible = false;
        },
        handleCancel(){
            this.visible = false;
        }
    }
}
</script>